package com.start.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.start.admin.entity.StartSysUser;
import com.start.core.vo.BaseUpdatePassword;
import com.start.core.vo.UpdateCurrentUserPasswordVo;


public interface StartSysUserService extends IService<StartSysUser> {
    StartSysUser getByUserName(String userName);

    void createUser(StartSysUser entity);

    void updateUserPassword(BaseUpdatePassword model);

    void updateCurrentUserPassword(UpdateCurrentUserPasswordVo model);

    /**
     * 修改用户锁定状态
     *
     * @param userId
     * @param state
     */
    void updateUserLockedState(String userId, Integer state);

    /**
     * 修改用户启用状态
     *
     * @param userId
     * @param state
     */
    void updateUserEnabledState(String userId, Integer state);


}
